package com.frame.pageform.job;

public class Job {

	private Runnable run;
	/**
	 * 间隔时间（以秒为单位）
	 */
	private int interval;
	/**
	 * 上次运行时间的毫秒数
	 */
	private long lastTime=0;

	public Job(){

	}
	public Job(Runnable run,int interval){
		this.run=run;
		this.interval=interval;
	}
	/**
	 * 间隔时间（以秒为单位）
	 */
	public Runnable getRun() {
		return run;
	}
	public void setRun(Runnable run) {
		this.run = run;
	}

	public int getInterval() {
		return interval;
	}

	public void setInterval(int interval) {
		this.interval = interval;
	}
	public long getLastTime() {
		return lastTime;
	}
	public void setLastTime(long lastTime) {
		this.lastTime = lastTime;
	}

}
